package cn.com.api.mapper;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiT_juan_tj;

public interface ApiJuanTJMapper {
	/** 根据用户id和优惠券id查询优惠券 */
	public ApiT_juan_tj selectApiT_juan_tjByUidAndJid(
			@Param("u_id") String u_id, @Param("juan_id") Integer juan_id);

	/** 更新用户的优惠券状态 */
	public void updateApiT_juan_tj(ApiT_juan_tj juan_tj);
	
	public Integer searIsEnable(@Param("uid") String uid, @Param("jid") String jid);
	public Integer juanIsUsed(@Param("uid") String uid, @Param("juanid") Integer juanid);
	
	public void useJuan(@Param("juanid") Integer juanid,@Param("uid") String uid);
	
}